package com.lindroy.jetpacknotes.databinding

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.lindroy.jetpacknotes.R
import com.lindroy.jetpacknotes.databinding.bean.StudentBean

class DataBindingSimpleActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding = DataBindingUtil.setContentView<ActivityDataBindingSimpleBinding>(
            this,
            R.layout.activity_data_binding_simple
        )
//        binding.setVariable(BR.Student,StudentBean("李雷",12,6))
        binding.student = StudentBean("李雷", "男", 6)
    }
}